import 'package:xin_he/generated/json/base/json_convert_content.dart';
import 'package:xin_he/page/mine/xin_he_mine_real_name_auth/xin_he_auth_model_entity.dart';

XinHeAuthModelEntity $XinHeAuthModelEntityFromJson(Map<String, dynamic> json) {
	final XinHeAuthModelEntity xinHeAuthModelEntity = XinHeAuthModelEntity();
	final String? id = jsonConvert.convert<String>(json['id']);
	if (id != null) {
		xinHeAuthModelEntity.id = id;
	}
	final String? fUserId = jsonConvert.convert<String>(json['fUserId']);
	if (fUserId != null) {
		xinHeAuthModelEntity.fUserId = fUserId;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		xinHeAuthModelEntity.name = name;
	}
	final String? card = jsonConvert.convert<String>(json['card']);
	if (card != null) {
		xinHeAuthModelEntity.card = card;
	}
	final dynamic phone = jsonConvert.convert<dynamic>(json['phone']);
	if (phone != null) {
		xinHeAuthModelEntity.phone = phone;
	}
	final String? certificateFront = jsonConvert.convert<String>(json['certificateFront']);
	if (certificateFront != null) {
		xinHeAuthModelEntity.certificateFront = certificateFront;
	}
	final String? certificateBack = jsonConvert.convert<String>(json['certificateBack']);
	if (certificateBack != null) {
		xinHeAuthModelEntity.certificateBack = certificateBack;
	}
	final String? checkStatus = jsonConvert.convert<String>(json['checkStatus']);
	if (checkStatus != null) {
		xinHeAuthModelEntity.checkStatus = checkStatus;
	}
	final dynamic checkRemark = jsonConvert.convert<dynamic>(json['checkRemark']);
	if (checkRemark != null) {
		xinHeAuthModelEntity.checkRemark = checkRemark;
	}
	final int? removed = jsonConvert.convert<int>(json['removed']);
	if (removed != null) {
		xinHeAuthModelEntity.removed = removed;
	}
	final dynamic remark = jsonConvert.convert<dynamic>(json['remark']);
	if (remark != null) {
		xinHeAuthModelEntity.remark = remark;
	}
	final int? versionNum = jsonConvert.convert<int>(json['versionNum']);
	if (versionNum != null) {
		xinHeAuthModelEntity.versionNum = versionNum;
	}
	final String? createTime = jsonConvert.convert<String>(json['createTime']);
	if (createTime != null) {
		xinHeAuthModelEntity.createTime = createTime;
	}
	final String? updateTime = jsonConvert.convert<String>(json['updateTime']);
	if (updateTime != null) {
		xinHeAuthModelEntity.updateTime = updateTime;
	}
	final dynamic fCreateUserId = jsonConvert.convert<dynamic>(json['fCreateUserId']);
	if (fCreateUserId != null) {
		xinHeAuthModelEntity.fCreateUserId = fCreateUserId;
	}
	final dynamic fUpdateUserId = jsonConvert.convert<dynamic>(json['fUpdateUserId']);
	if (fUpdateUserId != null) {
		xinHeAuthModelEntity.fUpdateUserId = fUpdateUserId;
	}
	return xinHeAuthModelEntity;
}

Map<String, dynamic> $XinHeAuthModelEntityToJson(XinHeAuthModelEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['fUserId'] = entity.fUserId;
	data['name'] = entity.name;
	data['card'] = entity.card;
	data['phone'] = entity.phone;
	data['certificateFront'] = entity.certificateFront;
	data['certificateBack'] = entity.certificateBack;
	data['checkStatus'] = entity.checkStatus;
	data['checkRemark'] = entity.checkRemark;
	data['removed'] = entity.removed;
	data['remark'] = entity.remark;
	data['versionNum'] = entity.versionNum;
	data['createTime'] = entity.createTime;
	data['updateTime'] = entity.updateTime;
	data['fCreateUserId'] = entity.fCreateUserId;
	data['fUpdateUserId'] = entity.fUpdateUserId;
	return data;
}